<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<c:url value="/" var="baseUrl" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
   <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="img/favicon.png">
<title>山东电信宽带异常分析助手</title>
<%@include file="../include/css.jsp"%>
  </head>

  <body>


  <!-- container section start -->
  <section id="container" class="">
<%@include file="../include/header.jsp"%>
		<%@include file="../include/sidebar.jsp"%>

            <!--main content start-->
      <section id="main-content">
          <section class="wrapper">
              <!--overview start-->

            <!--/.row-->
<table style="margin-right: auto; margin-left: auto;">
	<tr>
		<th>
			<h4>BAS数据虚拟拨号分析</h4>
		</th>
	</tr>
	
</table>
            <!--/.row--><!-- Today status end --><!-- statics end -->
              <!--主显示区域--开始-->
            	<form action="${baseUrl}front/ListSameMac" method="post">
		<input type="hidden" name="pageNo" value="${paging.pageNo}" /> 
		<input type="hidden" name="pageSize" value="${paging.pageSize}" /> 
    <div class="row">
    <div class="col-lg-12">
    <section class="panel">
    <header class="panel-heading">
    <div style="display: inline-block; width: 90%; text-align: center">分析列表</div>
    <div style="display: inline-block"><a href="ExportInfoOfSameMac">[导出明细]</a></div>
    </header>


    <table class="table table-striped table-advance table-hover" align="center">
    <tbody>
    <tr>
     <th>地市</th>
    <th>BAS IP</th>
    <th><font color="#FF0000">相似MAC</font></th>
    <th>连续相似MAC数量</th>
    <th>明细</th>
    </tr>
    <c:forEach items="${paging.datas}" var="SameMac" varStatus="status">
        <tr>
        <td>${SameMac.city}</td>
        <td>${SameMac.basIp}</td>
        <td>${SameMac.mac}</td>
        <td>${SameMac.count}</td>
        <td>
        <a class="btn btn-primary" href="ListAccountOfSameMac?basIp=${SameMac.basIp}&leftMac=${SameMac.mac}">查看</a>
        </td>
        </tr>
    </c:forEach>

    </tbody>
    </table>
    </section>
    </div>
    </div>

		<table align="center">
			<tr>
				<c:if test="${paging.pageCount>1}">
					<td><input type="submit" value="首页" name="firstPage" /></td>
				</c:if>
				<c:if test="${paging.pageNo>0 && paging.pageNo<=paging.pageCount-1}">
					<td><input type="submit" value="前页" name="previousPage" /></td>
				</c:if>
				<td>第${paging.pageNo+1}页 / 共${paging.pageCount}页</td>
				<c:if test="${paging.pageNo>=0 && paging.pageNo<paging.pageCount-1}">
					<td><input type="submit" value="后页" name="nextPage" /></td>
				</c:if>
				<c:if test="${paging.pageCount>1}">
					<td><input type="submit" value="尾页" name="lastPage" /></td>
				</c:if>
			</tr>
		</table>

	</form>

              <!-- project team & activity start -->

              <br>
              <br>
              <!-- project team & activity end -->
			  <!--主显示区域--结束-->
          </section>
      </section>
      <!--main content end-->
  </section>
  <!-- container section start -->

    <%@include file="../include/scripts.jsp"%>
<script>
$("#sidebarMyChart").removeClass('active');
$("#sidebarListSameMac").addClass('active');
$("#sidebarListAvgFlow").removeClass('active');
$("#sidebarScatter").removeClass('active');
$("#sidebarListSigData").removeClass('active');
$("#sidebarListTop10").removeClass('active');
$("#sidebarListAccount").removeClass('active');
$("#sidebarBWListAdmin").removeClass('active');
$("#sidebarListDoc").removeClass('active');
$("#sidebarListUser").removeClass('active');
</script>
  </body>
</html>
